<template>
  <div>
    <mor2 @send="getsend"></mor2>
    <pdd @sendX="jiasend"></pdd>
    {{n}}
  </div>
</template>
<script>
import mor2 from "./8-20mor2.vue";
import pdd from "./8-20mor3.vue";
export default {
  data() {
    return {
      n: 10,
    };
  },
  components: {
    mor2,
    pdd,
  },
  methods: {
    getsend(msg) {
      // $emit('send','事件')
      console.log(msg); //123
    },
    jiasend() {
      this.n++;
    //   this.msg++
    },
  },
};
</script>
<style scoped>
</style>
